package com.rr.mymoney.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.rr.mymoney.model.Transaction;
import com.rr.mymoney.model.enums.TransactionType;

@Repository
public interface TransactionDao {
    public void saveOrUpdate(Transaction transaction);

    public Transaction get(Long id);

    public void delete(Transaction transaction);

    public List<Transaction> getFiltered(List<Long> userIds, int month, int year, TransactionType transactionType, Long categoryId,
	    Long accountId, String currencyId);

    public List<Transaction> searchDoubledTransaction(Transaction transaction);
}
